#ifndef OPTIONEDIT_H
#define OPTIONEDIT_H

#include <QDialog>
#include "option.h"
namespace Ui {
class OptionEdit;
}

class OptionEdit : public QDialog
{
    Q_OBJECT

public:
    explicit OptionEdit(QWidget *parent = nullptr);
    void update(Option option);
    ~OptionEdit();
signals:
    void cancel();
    void confirm(long amount);
private:
    Ui::OptionEdit *ui;
};

#endif // OPTIONEDIT_H
